﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using ClassLibrary1;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace InsultingSqlTests
{
	[TestClass]
	public class UnitTest1
	{
		[TestMethod]
		public void TestMethod1()
		{
			using (var db = new InsultsEntities())
			{
				foreach (var i in db.Insults)
				{
					i.NumberOfWords = i.Insult1.Split(' ').Length;
					
				}
				db.SaveChanges();				
			}
		}
	}
}
